package com.ctshk.rpc.cms.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import com.ctshk.common.model.BaseEntity;
import com.ctshk.rpc.cms.json.UserFeedBackFileJson;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * <p>
 * 用户反馈表
 * </p>
 *
 * @author LiZhiming
 * @since 2021-04-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_user_feedback")
@ApiModel(value = "UserFeedback对象", description = "用户反馈表")
public class UserFeedback extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "反馈类型id")
    private Long feedbackTypeId;

    @ApiModelProperty(value = "反馈类型名称")
    private String feedbackTypeName;

    @ApiModelProperty(value = "反馈渠道")
    private Integer feedbackChannels;

    @ApiModelProperty(value = "反馈用户id")
    private Long feedbackUserId;

    @ApiModelProperty(value = "反馈用户名称")
    private String feedbackUserName;

    @ApiModelProperty(value = "反馈内容")
    private String feedbackContent;

    @ApiModelProperty(value = "创建人")
    private Long createId;

    @ApiModelProperty(value = "修改人")
    private Long modifiedId;

    @ApiModelProperty(value = "删除标识")
    private Integer isDeleted;

    @ApiModelProperty(value = "图片JSON(反馈描述)")
    @TableField(typeHandler = FastjsonTypeHandler.class)
    private List<UserFeedBackFileJson> feedbackImgs;

}
